import { createRouter, createWebHashHistory } from 'vue-router';

/**
 * Routes
 */
// Auth
import auth from './auth';
// Error
import error from './error';

const router = createRouter({
    history: createWebHashHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            redirect: '/login',
        },
        // Auth
        ...auth,
        // Error
        ...error,
    ],
});

export default router;
